//
//  XDCycleCell.m
//  AliPay001
//
//  Created by lucy on 16/8/22.
//  Copyright © 2016年 com.huasheng. All rights reserved.
//

#import "XDCycleCell.h"
#import "Masonry.h"

@interface XDCycleCell()
@property(nonatomic,weak)UIImageView* ADImageView;

@end


@implementation XDCycleCell

-(void)awakeFromNib
{
    
    [self setupUI];

}

-(instancetype)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if(self)
    {
        [self setupUI];
    
    
    
    }
    return self;

}



//UI界面
-(void)setupUI
{
    UIImageView *ADImageView=[[UIImageView alloc]init];
    [self.contentView addSubview:ADImageView];
    
    [ADImageView mas_makeConstraints:^(MASConstraintMaker *make) {
    
        make.edges.offset(0);
        
    }];
    
    self.ADImageView=ADImageView;


}


//重写属性setter方法
-(void)setImage:(UIImage *)image
{
    _image=image;
    self.ADImageView.image= image;
}

@end











